package com.example.jeong.yuejian10.Service;






import com.example.jeong.yuejian10.Bean.ActivityBean;
import com.example.jeong.yuejian10.Bean.AttentionBean;
import com.example.jeong.yuejian10.Bean.ClubBean;
import com.example.jeong.yuejian10.Bean.CourseBean;
import com.example.jeong.yuejian10.Bean.IsAttentionBean;
import com.example.jeong.yuejian10.Bean.VideoBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;


public interface ClubService {
    @GET("Club/getClublist")
    Call<List<ClubBean>> getClublist();

    @GET("Club/getClubinfo")
    Call<ClubBean> getClubinfo(int c_id);

    @GET("Club/getClubactivitys")
    Call<List<ActivityBean>> getClubactivitys(@Query("c_id") int c_id);

    @GET("Clubcourse/getClubcourselist")
    Call<List<CourseBean>> getClubcourselist(@Query("c_id") int c_id);

    @GET("Clubvideo/getClubvideolist")
    Call<List<VideoBean>> getClubvideolist(@Query("c_id") int c_id);

    //搜索培训
    @GET("Club/searchClub")
    Call<List<ClubBean>> searchClub(@Query("c_name") String c_name);

    //判断是否收藏
    @GET("Attention/getIsCollected")
    Call<IsAttentionBean> getIsCollected(@Query("u_id") int u_id,
                                         @Query("select_id") int select_id,
                                         @Query("flag") String flag
    );
    //关注培训
    @GET("Attention/userCollectClub")
    Call<AttentionBean> userCollectClub(@Query("u_id") int u_id,
                                        @Query("c_id") int c_id

    );


}
